{% extends theme("layout.html") %}
{% from "macros/_forms.html" import render_errors %}

{% set selected_tab="signup" %}

{% block content %}
<h2>{{ _('Sign up to newsmeme') }}</h2>

<p>
{% trans openid_url=url_for('openid.login') %}
Sign up with <a href="{{ openid_url }}">OpenID</a> 
{% endtrans %}
</p>


<form method="POST" action=".">
    {{ form.hidden_tag() }}
    {{ form.next }}
    <ul>
        <li>
            {{ render_errors(form.username) }}
            {{ form.username.label }} {{ form.username }}
        </li>
        <li>
            {{ render_errors(form.email) }}
            {{ form.email.label }} {{ form.email }}
        </li>
        <li>
            {{ render_errors(form.password) }}
            {{ form.password.label }} {{ form.password }}
        </li>
        <li>
            {{ render_errors(form.password_again) }}
            {{ form.password_again.label }} {{ form.password_again }}
        </li>
       <li>
            {{ render_errors(form.recaptcha) }}
            {{ form.recaptcha.label }} <br>{{ form.recaptcha }}
        </li>
        <li>
            {{ form.submit }}
            </li>
    </ul>
</form>

{% endblock %}
